﻿<nav class="intro_wrap__title" id="intro_wrap__title">
    <div class="intro_wrap__title__logo">
        <a href="/" class="link">
            <img width="100" height="100" class="logo" src="@Url.Content("~/Content/img/cam100px.png")">
            365 Creative Group
        </a>
    </div>
    <ul class="list-unstyled intro_wrap__title__nav menu-links_js">
        <li class="intro_wrap__title__nav__item">
            <a class="link" href="@Url.Action("Main","Root")">главная</a>
        </li>
        <li class="intro_wrap__title__nav__item">
            <a class="link" href="@Url.Action("Portfolio", "Root")">портфолио</a>
        </li>
        <li class="intro_wrap__title__nav__item">
            <a class="link" href="@Url.Action("Blog", "Root")">блог</a>
        </li>
        <li class="intro_wrap__title__nav__item">
            <a class="link" href="@Url.Action("About", "Root")">о нас</a>
        </li>
        @if (User.Identity.IsAuthenticated && User.Identity.Name == "admin")
        {
            <li class="intro_wrap__title__nav__item">
                <div class="dropdown">
                    <a class="link dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">
                        admin
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/blog/create">Новый пост</a>
                        </li>
                        <li class="divider" role="presentation"></li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/photoalbums">Альбомы</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/requests">Заявки</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/users">Пользователи</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/photographs">Фотографии</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/admin/Blog">Посты</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/Mention/Index">Отзывы</a>
                        </li>
                        <li class="divider" role="presentation"></li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="/logoff">Выйти</a>
                        </li>
                    </ul>
                </div>
            </li>
        }
    </ul>
</nav>

